package com.helin.helinhealth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 紧急呼叫实体类
 */
@Data
@TableName("emergency")
@Schema(description = "紧急呼叫记录表")
public class Emergency implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    @Schema(description = "记录ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    @Schema(description = "用户ID")
    @TableField("user_id")
    private Long userId;
    
    @Schema(description = "经度")
    @TableField("lng")
    private Double lng;
    
    @Schema(description = "纬度")
    @TableField("lat")
    private Double lat;
    
    @Schema(description = "状态：0-未处理 1-已接收")
    @TableField("status")
    private Integer status;
    
    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;
    
    @Schema(description = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;
} 